<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>Simple Counter</title>
	</head>
	<body>
		<h2>使用 Prop 传递数据</h2>
		<div id="example-3">
			<child message="hello!"></child>
		</div>
		<script type="text/javascript" src="js/vue.js" ></script>
		<script type="text/javascript">
			// 注册
			Vue.component('child', {
				props: ['message'],
				template: '<span>{{ message }}</span>'
			});
			
			var app3 = new Vue({
				el: '#example-3'
			});
			
		</script>
	</body>
</html>
